<?php
/**
 * Created by PhpStorm.
 * User: zng
 * Date: 2020/3/25
 * Time: 11:09
 */
namespace app\api\traits\model\foods;

Trait FoodCategory {

    public function foods()
    {
        return $this->belongsToMany('Foods', \app\api\model\foods\FoodsCategory::class, 'cid', 'fid');
    }

}